package com.company;

public class constructor {
    public static void main(String[] args){
         new  person();
         new  person(1);
         new  person("开始");
         new  person('s');
         new  person("nihao",99);
         new  String("hah");
    }
}
class person{
public  person(){
    System.out.println("构造方法");
}
public person(int x){
    System.out.println(123456789);
}
    public  person(String x){
       System.out.println("方法构造");
    }
    public  person(char x){
    System.out.println('A');
    }
    public person(String x,int y){
    System.out.println(1234578);
    }
}